package ooday02;

public class extendsTest {
    public static void main(String[] args) {
        Student zs = new Student("张三",25,"北京","jsd2302","001");
        zs.eat();
        zs.sleep();
        zs.sayHi();
        zs.study();

        Doctor ls=new Doctor("李四",25,"香港","外科");
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.cut();

        Teacher ww=new Teacher("王五",29,"上海",5000);
        ww.eat();
        ww.sleep();
        ww.sayHi();
        ww.teach();

    }
}
